package com.gitee.melin.bee.core.jdbc.relational;

import lombok.Data;

import java.io.Serializable;
import java.sql.JDBCType;

@Data
public class MetaColumn implements Serializable {

    private static final long serialVersionUID = 6438514547501611599L;

    private String columnName; //小写

    private String columnType;

    private JDBCType jdbcType;

    private String comment;

    private boolean primaryKey;

    private boolean partitionField; //hive

    private boolean autoIncrement;

    private String defaultValue;

    private boolean unique = false;

    private boolean nullable = true;

    private String columnDefinition;

    private Integer position;

    private Integer columnLength;

    private Integer precision;

    private Integer scale;
}
